Optimal. Leaf size=130 \[ \frac {1}{2} e^{-a} a^3 b^2 \text {Ei}(-b x)-\frac {a^3 e^{-a-b x}}{2 x^2}+\frac {a^3 b e^{-a-b x}}{2 x}-3 e^{-a} a^2 b^2 \text {Ei}(-b x)-\frac {3 a^2 b e^{-a-b x}}{x}+3 e^{-a} a b^2 \text {Ei}(-b x)-b^2 e^{-a-b x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.21, antiderivative size = 130, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {2199, 2194, 2177, 2178} \[ \frac {1}{2} e^{-a} a^3 b^2 \text {Ei}(-b x)-3 e^{-a} a^2 b^2 \text {Ei}(-b x)-\frac {a^3 e^{-a-b x}}{2 x^2}+\frac {a^3 b e^{-a-b x}}{2 x}-\frac {3 a^2 b e^{-a-b x}}{x}+3 e^{-a} a b^2 \text {Ei}(-b x)-b^2 e^{-a-b x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2177
Rule 2178
Rule 2194
Rule 2199
Rubi steps
\begin {align*} \int \frac {e^{-a-b x} (a+b x)^3}{x^3} \, dx &=\int \left (b^3 e^{-a-b x}+\frac {a^3 e^{-a-b x}}{x^3}+\frac {3 a^2 b e^{-a-b x}}{x^2}+\frac {3 a b^2 e^{-a-b x}}{x}\right ) \, dx\\ &=a^3 \int \frac {e^{-a-b x}}{x^3} \, dx+\left (3 a^2 b\right ) \int \frac {e^{-a-b x}}{x^2} \, dx+\left (3 a b^2\right ) \int \frac {e^{-a-b x}}{x} \, dx+b^3 \int e^{-a-b x} \, dx\\ &=-b^2 e^{-a-b x}-\frac {a^3 e^{-a-b x}}{2 x^2}-\frac {3 a^2 b e^{-a-b x}}{x}+3 a b^2 e^{-a} \text {Ei}(-b x)-\frac {1}{2} \left (a^3 b\right ) \int \frac {e^{-a-b x}}{x^2} \, dx-\left (3 a^2 b^2\right ) \int \frac {e^{-a-b x}}{x} \, dx\\ &=-b^2 e^{-a-b x}-\frac {a^3 e^{-a-b x}}{2 x^2}-\frac {3 a^2 b e^{-a-b x}}{x}+\frac {a^3 b e^{-a-b x}}{2 x}+3 a b^2 e^{-a} \text {Ei}(-b x)-3 a^2 b^2 e^{-a} \text {Ei}(-b x)+\frac {1}{2} \left (a^3 b^2\right ) \int \frac {e^{-a-b x}}{x} \, dx\\ &=-b^2 e^{-a-b x}-\frac {a^3 e^{-a-b x}}{2 x^2}-\frac {3 a^2 b e^{-a-b x}}{x}+\frac {a^3 b e^{-a-b x}}{2 x}+3 a b^2 e^{-a} \text {Ei}(-b x)-3 a^2 b^2 e^{-a} \text {Ei}(-b x)+\frac {1}{2} a^3 b^2 e^{-a} \text {Ei}(-b x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.08, size = 68, normalized size = 0.52 \[ \frac {e^{-a-b x} \left (a^3 (b x-1)+\left (a^2-6 a+6\right ) a b^2 x^2 e^{b x} \text {Ei}(-b x)-6 a^2 b x-2 b^2 x^2\right )}{2 x^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.42, size = 70, normalized size = 0.54 \[ \frac {{\left (a^{3} - 6 \, a^{2} + 6 \, a\right )} b^{2} x^{2} {\rm Ei}\left (-b x\right ) e^{\left (-a\right )} - {\left (2 \, b^{2} x^{2} + a^{3} - {\left (a^{3} - 6 \, a^{2}\right )} b x\right )} e^{\left (-b x - a\right )}}{2 \, x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.33, size = 125, normalized size = 0.96 \[ \frac {a^{3} b^{2} x^{2} {\rm Ei}\left (-b x\right ) e^{\left (-a\right )} - 6 \, a^{2} b^{2} x^{2} {\rm Ei}\left (-b x\right ) e^{\left (-a\right )} + 6 \, a b^{2} x^{2} {\rm Ei}\left (-b x\right ) e^{\left (-a\right )} + a^{3} b x e^{\left (-b x - a\right )} - 6 \, a^{2} b x e^{\left (-b x - a\right )} - 2 \, b^{2} x^{2} e^{\left (-b x - a\right )} - a^{3} e^{\left (-b x - a\right )}}{2 \, x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 112, normalized size = 0.86 \[ -\left (-\left (-\frac {\Ei \left (1, b x \right ) {\mathrm e}^{-a}}{2}+\frac {{\mathrm e}^{-b x -a}}{2 b x}-\frac {{\mathrm e}^{-b x -a}}{2 b^{2} x^{2}}\right ) a^{3}+3 a \Ei \left (1, b x \right ) {\mathrm e}^{-a}+3 \left (-\Ei \left (1, b x \right ) {\mathrm e}^{-a}+\frac {{\mathrm e}^{-b x -a}}{b x}\right ) a^{2}+{\mathrm e}^{-b x -a}\right ) b^{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.24, size = 64, normalized size = 0.49 \[ -a^{3} b^{2} e^{\left (-a\right )} \Gamma \left (-2, b x\right ) - 3 \, a^{2} b^{2} e^{\left (-a\right )} \Gamma \left (-1, b x\right ) + 3 \, a b^{2} {\rm Ei}\left (-b x\right ) e^{\left (-a\right )} - b^{2} e^{\left (-b x - a\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.64, size = 100, normalized size = 0.77 \[ 3\,a^2\,b^2\,{\mathrm {e}}^{-a}\,\left (\mathrm {expint}\left (b\,x\right )-\frac {{\mathrm {e}}^{-b\,x}}{b\,x}\right )-3\,a\,b^2\,{\mathrm {e}}^{-a}\,\mathrm {expint}\left (b\,x\right )-b^2\,{\mathrm {e}}^{-a-b\,x}+a^3\,b^2\,{\mathrm {e}}^{-a}\,\left ({\mathrm {e}}^{-b\,x}\,\left (\frac {1}{2\,b\,x}-\frac {1}{2\,b^2\,x^2}\right )-\frac {\mathrm {expint}\left (b\,x\right )}{2}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 5.30, size = 56, normalized size = 0.43 \[ \left (- \frac {a^{3} \operatorname {E}_{3}\left (b x\right )}{x^{2}} - \frac {3 a^{2} b \operatorname {E}_{2}\left (b x\right )}{x} + 3 a b^{2} \operatorname {Ei}{\left (- b x \right )} + b^{3} \left (\begin {cases} x & \text {for}\: b = 0 \\- \frac {e^{- b x}}{b} & \text {otherwise} \end {cases}\right )\right ) e^{- a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________